<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<link rel="stylesheet" href="<c:url value='/resource/css/bootstrap.css'/>">
<link rel="stylesheet" href="<c:url value='/resource/css/darktooltip.css'/>">
<link rel="stylesheet" href="<c:url value='/resource/css/animate.min.css'/>">
<link rel="stylesheet" href="<c:url value='/resource/css/style.css?v=1'/>">
<script src="<c:url value='/resource/js/jquery-1.9.1.min.js'/>"></script>
<script src="<c:url value='/resource/js/jqPaginator.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/resource/css/combo.select.css'/>">
<link rel="stylesheet" href="<c:url value='/resource/css/common.css?v=1'/>">
<link rel="stylesheet" href="<c:url value='/resource/js/layer/skin/default/layer.css?v=1'/>">
<script src="<c:url value='/resource/js/common.js?v=1'/>"></script>

<%
    String actionId = request.getParameter("actionId");
%>


<nav class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">便民服务平台</a>
        </div>
        <div class="searchNav-box">
            <div class="searchNav">
                <div class="so-form">
                    <form>
                <span class="so-icon">
                    <i class="glyphicon glyphicon-search"></i>
                </span>
                        <input name="search" type="text" value="" placeholder="关键字查找" class="search-input">
                    </form>
                </div>
                <div class="so-tip" id="soTip">
                    <dl>
                        <dt>↙ 回车查看全部内容</dt>
                        <dd><a href="#">户口注销证明</a></dd>
                        <dd><a href="#">户口注销证明户口注销证明户口注销证明户口注销证明</a></dd>
                        <dd><a href="#">户口注销证明</a></dd>
                        <dd><a href="#">户口注销证明</a></dd>
                        <dd><a href="#">户口注销证明</a></dd>
                    </dl>
                </div>
            </div>
        </div>

        <div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li id="index_1"><a href="<c:url value='/'/>">首页</a></li>
                <li id="index_2"><a href="<c:url value='/matters/index'/>">办事服务</a></li>
                <li id="index_3"><a href="<c:url value='/querys/center'/>">便民查询</a></li>
                <li id="index_4"><a href="<c:url value='/news/news_index'/>">警务公开</a></li>
                <li id="index_5"><a href="<c:url value='/interacts/billresource'/>">表单下载</a></li>
                <li class="dropdown">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="dropdown-circle"></span>
                        <span class="dropdown-circle"></span>
                        <span class="dropdown-circle"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="<c:url value='/handyconsult/consult'/>">便民咨询</a></li>
                        <li><a href="<c:url value='/interacts/index'/>">应用中心</a></li>
                        <li><a href="<c:url value='/order/index'/>">预约中心</a></li>
                        <li><a href="<c:url value='/usercenter/index'/>">信息资料</a></li>

                    </ul>
                </li>
            </ul>
            <c:if test="${current_member==null}">
                <div class="mulogin">
                    <a href="javascript:;" class="login-a">登录</a>
                    <a href="<c:url value="/members/to_register"/>" class="muregbtn">注册</a>
                </div>
            </c:if>
            <c:if test="${current_member!=null}">
                <div class="loginUser-info">
                    <a href="<c:url value="/usercenter/index"/>" class="loginUser-name">${current_member.acountId}</a>
                    <a href="javascript:loginOut();" class="loginOut">退出</a>
                </div>
            </c:if>
        </div>
    </div>
</nav>

<script>
    function loginOut() {
        callAjaxPost("<c:url value='/members/login_out'/>", null, function () {
            window.parent.location = "<c:url value='/'/>";
        });
    }
    var activeId = '<%=actionId%>';
    if (activeId == "null" || activeId == "") {
        activeId = "index_1";
    }


    $('#' + activeId).addClass("active");


</script>